ident = '$Id: setup.py 109 2006-06-05 18:46:37Z trevor $'

# setup.py
from distutils.core import setup
import sys

if sys.platform == 'darwin':
	import py2app
	#buildstyle = 'app'
	py2app_options = dict(
		# Map "open document" events to sys.argv.
		# Scripts that expect files as command line arguments
		# can be trivially used as "droplets" using this option.
		# Without this option, sys.argv should not be used at all
		# as it will contain only Mac OS X specific stuff.
		#argv_emulation=True,

		# This is a shortcut that will place MyApplication.icns
		# in the Contents/Resources folder of the application bundle,
		# and make sure the CFBundleIcon plist key is set appropriately.
		iconfile='pixmaps/esm.icns',
	)
	setup(
		name="Etelos Development Environment",
		app=['ede.py'],
		options=dict( py2app=py2app_options ),
	)

elif sys.platform == 'win32':
	import py2exe
	# buildstyle = 'console'
	buildstyle = 'windows'
	setup(name="Etelos Development Environment",
		description="Etelos Systems, Inc. Development Environment",
		author="Ahmad Baitalmal",
		author_email="ahmad@etelos.com",
		url="http://www.etelos.com",
		windows=[{"script":"ede.py", "icon_resources":[(1,"pixmaps/ESM.ico")]}],
		)
